#include "stdafx.h"
#include "TestPersistenceManagerFactory.h"
#include "PersistenceManagerFactory.h"

using namespace PDMS::PDMSDBIF;

CPPUNIT_TEST_SUITE_REGISTRATION( TestPersistenceManagerFactory );


TestPersistenceManagerFactory::TestPersistenceManagerFactory()
{
}


TestPersistenceManagerFactory::~TestPersistenceManagerFactory()
{
}

void TestPersistenceManagerFactory::TestInstance()
{
	PersistenceManagerFactory* pFac = PersistenceManagerFactory::Instance();
	CPPUNIT_ASSERT( pFac != NULL );
}

void TestPersistenceManagerFactory::TestGetPersistencManager()
{
	PersistenceManagerFactory* pFac = PersistenceManagerFactory::Instance();
	PersistenceManagerIF* pIF = pFac->GetPersistenceManager();
	CPPUNIT_ASSERT( pIF != NULL );
}